// 回文统计
package main

import "fmt"

func main() {
	s := "1上海自来水来自海上1"
	s1 := make([]rune, 0, len(s))
	for _, v := range s {
		s1 = append(s1, v)
	}
	for i := 0; i < len(s1)/2; i++ {
		if s1[i] != s1[len(s1)-1-i] {
			fmt.Println("不是回文")
			return
		}
	}
	fmt.Println("是回文")
}